﻿using BSU.GraduateWork.Data.Model;

namespace BSU.GraduateWork.Web.Models
{
    public class SolutionModel
    {
        public Problem3D Problem { get; set;}

        public SolutionModel()
        {
            State = ModelState.Initial;
        }

        public SolutionModel(Problem3D problem):this()
        {
            Problem = problem;
        }

        public SolutionModel(Problem3D problem, ModelState state)
            : this()
        {
            Problem = problem;
            State = state;
        }

        public enum ModelState
        {
            Initial,
            Solved
        }

        public ModelState State { get; set; }
    }

    public class Solution2DModel
    {
        public Problem2D Problem { get; set; }

        public Solution2DModel()
        {
            State = ModelState.Initial;
        }

        public Solution2DModel(Problem2D problem)
            : this()
        {
            Problem = problem;
        }

        public Solution2DModel(Problem2D problem, ModelState state)
            : this()
        {
            Problem = problem;
            State = state;
        }

        public enum ModelState
        {
            Initial,
            Solved
        }

        public ModelState State { get; set; }
    }
}
